// 个人优惠劵相关的
import request from '@/utils/request'

/*
* 个人优惠劵查询
*/
export const getDiscounts = _ => {
  return request({
    method: 'GET',
    url: '/user-discounts'
  })
}

/*
* 个人优惠劵删除 (使用后删除)
*/
export const deleteDiscounts = discountsId => {
  return request({
    method: 'delete',
    url: `/user-discounts/${discountsId}`
  })
}
